package com.example.source.spring.anno;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试注解用的controller
 */
@RequestMapping("anno")
@RestController
public class AnnoController {
    @Value("${my.value}")
    private String value;
    @RequestMapping("value")
    public String value() {
        return value;
    }
}
